#ifndef BTFORM_H
#define BTFORM_H

#include <QWidget>
#include <QPropertyAnimation>

namespace Ui {
class BtForm;
}

class BtForm : public QWidget
{
    Q_OBJECT

public:
    explicit BtForm(QWidget *parent = nullptr);
    ~BtForm();

    void setbtIconAndText(const QString& btIcon , const QString& btText,int pageid);

    int Pageid();

    void clearBackground();

    void showAnimation(bool isShow);

protected:
    void mousePressEvent(QMouseEvent *event);

signals:
    void btClick(int pageid);

private:
    Ui::BtForm *ui;

    int _pageid;

    QPropertyAnimation* _line1Animation;
    QPropertyAnimation* _line2Animation;
    QPropertyAnimation* _line3Animation;
    QPropertyAnimation* _line4Animation;
};

#endif // BTFORM_H
